home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 18 / Mac Magazin and MacEasy Magazine CD - Issue 18.iso / Spiele & Edutainment / Theatre / Theatre.rsrc / TEXT_1000.txt < prev    next >
Text File  |  1996-01-09  |  16KB  |  140 lines

  1. ‚óä About MaxZip
  2.  
  3. MaxZip: A Macintosh interpeter for Z-code text adventures
  4.  
  5. by Andrew Plotkin (erkyrath@cmu.edu)
  6. based on ZIP V2.0.7 by Mark Howell (howell_ma@movies.enet.dec.com)
  7.  
  8. There are a number of good Mac Z-code interpreters floating around -- notably Matthew Russotto's port of ZIP, and Greg Ewing's MacZeX. I would love to say that MaxZip is not based on any lack on their part. But... oh well. :-)
  9.  
  10. Basically, I got tired of not having true Macintosh convenience. I want copy and paste, scrolling, proportional fonts, resizable windows, command history, and macros. Well, I made all of that work under X windows with my XZip interpreter, so you think I'd be satisfied, right? Not on the Mac. I want double-clicking to work right. All the time. I want to be able to generate stand-alone games and take them apart as easily.
  11.  
  12. Here's the result.
  13.  
  14. ‚óä Running MaxZip
  15.  
  16. For those of you that came in late, MaxZip is not a game. It is an interpreter for Z-code, the low-level language developed by Infocom for writing their text adventures in. Infocom is dead and gone (pay no attention to the travesty behind Activision's curtain), but their language lives on, and people are still developing games for Z-code interpreters.
  17.  
  18. What this means is, you can't use MaxZip by itself. You need a Z-code file. (The canonical collection is available by FTP to ftp.gmd.de, in /if-archive. You will also find there Graham Nelson's compiler, Inform, which is what all those people are developing Z-code games with. )
  19.  
  20. If, however, you just got this application and it did  start a terrific text adventure all by itself, you must be running a stand-alone game created with MaxZip. In which case, kill this window and play already. If you really want to know more, read the section ‚ÄúUnbound and stand-alone MaxZip‚Äù.
  21.  
  22. ‚óä Commands and controls
  23.  
  24. It's a Mac program. It acts like one. (I'll admit that I haven't put in drag-and-drop editing... yet.)
  25.  
  26. The keyboard commands are astonishingly flexible, because MaxZip is the estranged offspring of XZip, an X windows program whose interface is a bastard child of ATK, which is itself an illegitimate by-blow of the early Macintosh with a great deal of Emacs grafted on in early adulthood. Deal with it. Sadly, there is no way to take advantage of all that flexibility. Maybe next version.
  27.  
  28. The only unusual commands are up-arrow and down-arrow, which scroll up and down in the command history (rather than moving the insertion bar, as you might expect.) 
  29.  
  30. The other obscure one is shift-cmd-Q (or hold down shift while selecting the ‚ÄúQuit‚Äù menu option.) This quits the game immediately, bypassing any ‚ÄúAre you sure?‚Äù prompts and score displays that the game may provide.
  31.  
  32. ‚óä Preferences
  33.  
  34. There are several pages of preferences, most of which are fairly obvious. Hit ‚ÄúApply‚Äù to apply the preferences to the game (if a game is running); ‚ÄúOk‚Äù to apply the preferences and dismiss the preferences window; and ‚ÄúCancel‚Äù to cancel. Note that the same preferences apply to all MaxZip games, including stand-alone games.
  35.  
  36. ‚Ä¢ Story window preferences: You can set the left/right margin, the top/bottom margin, and the space between lines (all measured in pixels). You can also set whether the text is full-justified, and what style your inputs are displayed in.
  37. ‚Ä¢ Status window preferences: The status window size is measured in characters. (If you change the size after starting a game, the status window will not change; Z-code games don't like the status window to change in mid-game. The changes will take effect at the beginning of the next game.) ‚ÄúWindow Resizes Dynamically‚Äù causes the status window to resize according to the game's desires. You can set whether the status window resizes normally (top edge remains in place) or upward (bottom edge remains in place); you can also set the window to move to the front when it expands, and to the back when it contracts. (This sounds goofy, but works awfully nicely.) The ‚ÄúBox Quotes Clear Automatically‚Äù option causes pop-up quotes (such as in Trinity  and Curses! ) to vanish the next time you hit Enter.
  38. ‚Ä¢ Fonts preferences: This somewhat confusing page lets you control which Macintosh fonts are used to display the eight notional Z-machine fonts. (The eight combinations of unbold/bold, unitalic/italic, and proportional/fixed-width. Actually there's also non-reverse/reverse, but MaxZip assumes that reverse fonts look the same as non-reverse fonts.) Pick one of the eight, and then set the font, size, and attributes. 
  39.   Note: it is very important that all the fixed-width fonts really be the same width! If you violate this rule, the status window will be a mess and probably drop characters. Use a single font such as Monaco, and if you turn on ‚Äúbold‚Äù, turn on ‚Äúcondensed‚Äù too. (A warning indicator will appear if you violate this rule.) 
  40. ‚Ä¢ Colors preferences: This page lets you control the colors of the MaxZip windows. Click on a color patch to bring up a standard color picker dialog. You can set the general foreground and background colors, or set the (foreground) color of each of the eight fonts separately. (Reverse fonts are drawn with the general background color on a field of that font's individual color.) The reset buttons return to the default colors: the default background is white, the default foreground is black, and the default for each font folor is whatever the foreground color is. 
  41.   If your Mac supports color, but has a black-and-white monitor, you can set these preferences, but the results will be reduced to black or white. About all you can usefully do is switch black and white. If your Mac does not support color at all, this page of preferences is inactive, and you will always have the default colors. Sorry.
  42. ‚Ä¢ Interpreter preferences: You can set how many commands are stored in the command history. (Changes to this preference will not take effect until the next game starts.) You can also set the size of the story buffer (how many characters are stored) and the slack (how many characters will be stored past the size limit before MaxZip deletes a chunk off the top. This is only important because deleting a chunk is a little slow, so you don't want to set the slack too low.) The final preference controls whether the ‚ÄúHit a key to continue‚Äù message appears after each page of text in the story window.
  43.  
  44. ‚óä Unbound and stand-alone MaxZip
  45.  
  46. MaxZip can exist by itself (‚Äúunbound‚Äù). In this state, it works like most other Mac ZIP interpreters. First you import a Z-code file, then you play. MaxZip tries to make this easy for you, in the following ways:
  47.  
  48. ‚Ä¢ If you have a Z-code file whose type is 'ZCOD', you can drag it onto MaxZip to start it up.
  49. ‚Ä¢ If you have a Z-code file whose type is 'ZCOD' and whose creator is 'mxZR' (MaxZip's creator code), you can start it up simply by double-clicking it.
  50. ‚Ä¢ If you have a Z-code file with a different type (say, because you just downloaded it), you can import it by starting MaxZip and choosing the ‚ÄúImport Z-Code File...‚Äù menu option.
  51. ‚Ä¢ If you have a saved-game file whose type is 'ZipG', you can drag it onto MaxZip, or just double-click it if its creator is 'mxZR'. Since a saved game is meaningless without a Z-code file, you will immediately be prompted for a Z-code file to play; you must pick the one which generated that save file. 
  52.  
  53. It is also possible to generate a stand-alone (‚Äúbound‚Äù) MaxZip application, which contains a Z-code file embedded in it. This is even easier to use:
  54.  
  55. ‚Ä¢ Double-clicking the stand-alone game starts it up immediately.
  56. ‚Ä¢ Double-clicking a saved-game file produced by the stand-alone game starts the game and restores that saved game immediately.
  57.  
  58. There are some other advantages to this system:
  59.  
  60. ‚Ä¢ A stand-alone game has its own creator code, so it can have its own icon and provide an icon for its saved games. 
  61. ‚Ä¢ If you have a stand-alone game, you can write out its Z-code with the ‚ÄúExport Z-Code File...‚Äù menu option. This produces a standard machine-independent Z-code file, which you can upload to other systems.
  62. ‚Ä¢ You can also build an unbound MaxZip application from a stand-alone one, with the ‚ÄúBuild Unbound MaxZip...‚Äù menu option. This means that someone who receives a stand-alone game can go on to use MaxZip with all  her Z-code files.
  63.  
  64. ‚óä Creating a stand-alone game
  65.  
  66. ‚Ä¢ Start MaxZip (you've already done that). 
  67. ‚Ä¢ You can import or double-click a Z-code file, and use the ‚ÄúBuild Stand-Alone Game...‚Äù menu option. Or, if you don't feel like looking at the beginning of the game, you can use the ‚ÄúBuild Stand-Alone Game From File...‚Äù menu option. (In this case, MaxZip will quit after building the stand-alone game.)
  68. ‚Ä¢ You will then see a standard Mac save dialog, with one addition: a text field for you to enter a creator code for your new game. This is a four-character code which the Mac uses to identify an application and its files. The only restriction is that it must contain at least one capital letter; the rest may be anything, including accented and other symbols.
  69. ‚Ä¢ If you choose a creator code which is already used by some application on your Mac, you will receive a warning dialog. You should pick another one -- unless, of course, the conflict is with an earlier version of your own stand-alone game. (MaxZip attempts to detect this case so that it can skip the warning, but it doesn't always work.)
  70. ‚Ä¢ MaxZip will build the new application. 
  71.  
  72. You can use the new application immediately, but there are some things you can do with ResEdit to make it cuter. Always work on the new application -- please don't edit the MaxZip application. And remember to make a back-up before you use ResEdit.
  73.  
  74. ‚Ä¢ You can edit the icons for the application ('APPL', icon family 128) and its save files ('ZipG', icon family 129). If you do this, you will probably have to rebuild your desktop database before the new icons become visible. (To rebuild the desktop, restart your Mac and hold down command-option as it starts up.)
  75. ‚Ä¢ You can edit 'vers' resource 1, to put in your name, your game's name, and your game's version. This information appears when someone does ‚ÄúGet Info‚Äù (cmd-I) on your game from the Finder. Do not change 'vers' resource 2; that contains the MaxZip version number and the message ‚ÄúCreated by MaxZip‚Äù. 
  76. ‚Ä¢ For that matter, don't touch any other resources, even the strings that say ‚ÄúMaxZip‚Äù. Those resources are not just used for your game; they are copied into any unbound MaxZip apps your users make, and any stand-alone games they may make from that. Be courteous.
  77. ‚Ä¢ If you are planning to widely distribute your stand-alone game (as opposed to just building one for your own convenience), you should register the creator code with Apple. Write to Developer Support Center, attn: C/F Type Administrator, 20525 Mariani Ave M/S 303-2T, Cupertino, CA 95014, USA. Include your name, address, phone, email, the creator code, and the game name.
  78.  
  79. ‚óä PowerMac and 68K concerns
  80.  
  81. MaxZip is a fat binary. This means that any stand-alone games you make will be fat as well.
  82.  
  83. This is a fairly hefty size increase. Therefore, you may want to use some kind of fat-stripping utility to remove either the PPC or 68K code from MaxZip or stand-alones. This will reduce the file size by 100K or more.
  84.  
  85. Stripped MaxZip executables should behave sensibly. That is, if you strip the PPC code from MaxZip, you'll get a 68K-only version; and any stand-alone games you produce from it will also be 68K-only, and any unbound MaxZips that anyone generates from those... etc. And the same for PPC-only versions. Your milage may vary, of course, depending on what stripping utility you use.
  86.  
  87. I would prefer that only complete, fat versions of MaxZip be distributed (but I'm not going to insist on it.) Similarly, I'd prefer that if you distribute a stand-alone MaxZip game, you distribute a fat version. I can hardly insist on that, either, but I think it makes sense.
  88.  
  89. ‚óä Known bugs
  90.  
  91. ‚Ä¢ Recording and playback of command sequences does not work.
  92. ‚Ä¢ If you save a game script to an existing file, the new script will replace the old script instead of being appended to it.
  93. ‚Ä¢ The custom of triple-clicking to select a line of text is not supported.
  94. ‚Ä¢ If you try to start scripting, but cancel the file dialog, MaxZip thinks that scripting is on. (This bug is inherited from ZIP).
  95. ‚Ä¢ If you change the fixed-width font size, the status window does not adjust to fit. (You can click the zoom button twice to adjust it manually.)
  96. ‚Ä¢ If you change the input style preference, the input style doesn't actually change until the next time you hit Enter.
  97. ‚Ä¢ Controls in the preferences window do not dim when another window is in front.
  98.  
  99. ‚óä Version history
  100.  
  101. ‚Ä¢ Version 1.4.9:
  102.   Partial PICKLE support. MaxZip can play PICKLE files, but not create stand-alone games from them.
  103.   The zoom button on the story window works now.
  104. ‚Ä¢ Version 1.4.0:
  105.   Changed to correct implementation of the timed-input opcodes.
  106.   Added standard cursors (the I-beam cursor in the text area; the watch cursor during long operations.)
  107.   Made the behavior of paste correct for Macintosh applications.
  108.   Fixed bug in creating stand-alone games on 68K machines. 
  109. ‚Ä¢ Version 1.3.0:
  110.   Fat binary!
  111.   Added a check for files which have been downloaded in text mode (high-bit stripped.)
  112.   Fixed a few bugs with the clipboard. You can now copy from paused or menu screens; copying multiple lines works right; and copied text is not lost if MaxZip exits.
  113.   Fixed the truly unpleasant flicker you used to get when starting up.
  114.   The cursor blinks properly when in the status window.
  115. ‚Ä¢ Version 1.2.1:
  116.   Fixed another display bug (very occasionally, the prompt line would disappear.) Also got the top/bottom margin preference to work.
  117. ‚Ä¢ Version 1.2.0:
  118.   Added support for Inform's new version-8 Z-code format. (MaxZip tries to accept V7 and V6 as well, but they may not work. Only V3, V5, and V8 are truly supported.)
  119.   Fixed some bugs with reverse-video text.
  120.   Made the filetype options in the "Import Z-Code" dialog more sensible.
  121. ‚Ä¢ Version 1.1.0: First general release
  122.   Color preferences added
  123.   Scrolling is now smooth, without flicker
  124.   Status window position is saved in preferences
  125.   Fatal errors from the interpreter are displayed properly
  126.   Version number displayed initially in the message line is correct
  127.   Fixed small bug with positioning windows on multi-screen Macs
  128. ‚Ä¢ Version 1.0.0: Preliminary release
  129.  
  130. ‚óä Permissions
  131.  
  132. Mac interface by Andrew Plotkin (erkyrath@cmu.edu)
  133. The Z-code engine is taken from ZIP V2.0.7 by Mark Howell (howell_ma@movies.enet.dec.com)
  134.  
  135. You are expressly forbidden to use this program on an Infocom game data file if, in so doing, you violate the copyright notice supplied with the original Infocom game.
  136.  
  137. Parts of this program are copyrighted by Andrew Plotkin. I do not know the exact copyright status of the rest, except that it was written by Mark Howell and thus is probably copyrighted by him. He released it for free, so to the best of my knowledge, the entirety of the unbound MaxZip application can be distributed and used freely, with the exception noted above.
  138.  
  139. If you build a stand-alone MaxZip game with a Z-code file you wrote, you own the stand-alone game. You may impose any restrictions or conditions you want on its use, and you may distribute it any way you want, including commercially. However, you may not interfere with the user's right or ability to build an unbound MaxZip application from your stand-alone game.
  140.